package com.ssky.bean.validator.core.rule;

import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

import java.util.List;

public class ValidatorRule{
        @XStreamAsAttribute
        private String id;

        @XStreamAsAttribute
        private String className;

        @XStreamImplicit(itemFieldName = "methodRule")
        private List<Rule> methodRules;

        @XStreamImplicit(itemFieldName = "field")
        private List<Field> Fields;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getClassName() {
            return className;
        }

        public void setClassName(String className) {
            this.className = className;
        }

        public List<Rule> getMethodRules() {
            return methodRules;
        }

        public void setMethodRules(List<Rule> methodRules) {
            this.methodRules = methodRules;
        }

        public List<Field> getFields() {
            return Fields;
        }

        public void setFields(List<Field> fields) {
            Fields = fields;
        }
    }